//
// Created by baigui on 21-7-9.
//

#include "NDKRender.h"

ANativeWindow *NDKRender::getSurface() {
    return mPlayer.lock()->getWindow();
}

NDKRender::NDKRender(weak_ptr<MediaPlayer> player) : VideoRender(player) {

}

bool NDKRender::Open(void *path) {
    RenderType *type = static_cast<RenderType *>(path);

    return NDKCodecType == *type;

}

bool NDKRender::start() {
    return true;
}

void NDKRender::handle(int, void *) {

}
